#include "Pixie.h"
#include "message.h"
#include "Opal.h"
configuration OpalC
{ 
} 
 
implementation
{
	components new SendStage(PIXIE_PRIORITY_NORM, TOS_BCAST_ADDR, OpalMsg, AM_OPAL_MSG);
	components new ReceiveStage(OpalMsg, AM_OPAL_MSG);
	components new OpalReceiveStage(PIXIE_PRIORITY_NORM) as RecieveMessage381;
	components new CountStage(PIXIE_PRIORITY_NORM) as Count320;
	components new OpalSendStage(PIXIE_PRIORITY_NORM) as SendMessage350;
	components new LEDStage(PIXIE_PRIORITY_NORM) as LEDs408;
	components new TimerStage(1024) as Timer291;

	Timer291.Output -> Count320.Input;
	Count320.Output -> SendMessage350.Input;
	SendMessage350.Output -> SendStage.Input;
	RecieveMessage381.Output -> LEDs408.Input;
	ReceiveStage.Output -> RecieveMessage381.Input;
	
}
